<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_GET["year_start"]) // AND $_GET["category_id"] AND $_GET["item_desc"] AND $_GET["item_value"])
{
    $year_start = strip_tags($_GET["year_start"]);
    $year_end = strip_tags($_GET["year_end"]);
	$comments = strip_tags($_GET["comments"]);
	
	file_put_contents  ( "params_insert.txt", 
								"year_start '" .$year_start.
								"' year_end '" .$year_end.
								"' comments '" .$comments."'");
	//add the budget entry
	$finYear = new FinYearSummary();
	
	$finYear->year_start = $year_start;
	$finYear->year_end = $year_end;
	$finYear->comments = $comments;
	$finYear->deleted = 0;
	/*
	$budget->created = $created;
	$budget->modified = $modified;
	$budget->created_by = $created_by;
	$budget->modified_by = $modified_by;
	*/	
	$finYear->save();
}

?>